package org.sword.wechat4j.api.request.qrcode;

import org.sword.wechat4j.api.bean.qrcode.Scene;
import org.sword.wechat4j.api.request.ApiRequest;
import org.sword.wechat4j.api.response.qrcode.Qrcode;

/**
 * 二维码获取
 * Created by wxc on 2016/8/8 0008.
 */
public class Cgi_binQrcodeCreatePost extends ApiRequest<Qrcode> {
    private Long expire_seconds;
    private String action_name;
    private ActionInfo action_info;

    public Long getExpire_seconds() {
        return expire_seconds;
    }

    public void setExpire_seconds(Long expire_seconds) {
        this.expire_seconds = expire_seconds;
    }

    public String getAction_name() {
        return action_name;
    }

    public void setAction_name(String action_name) {
        this.action_name = action_name;
    }

    public ActionInfo getAction_info() {
        return action_info == null ? new ActionInfo() : action_info;
    }

    public void setAction_info(Scene scene) {
        ActionInfo info = new ActionInfo();
        info.setScene(scene);
        this.action_info = info;
    }

    public class ActionInfo {
        private Scene scene;

        public Scene getScene() {
            return scene;
        }

        public void setScene(Scene scene) {
            this.scene = scene;
        }
    }

}
